package main

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"krm_backend/config"
	"krm_backend/routers"
	// 匿名导入initcontroller
	_ "krm_backend/controllers/initcontroller"
)

func main() {
	fmt.Println("krm_backend")

	r := gin.Default()
	// 加载全局中间件
	//r.Use(middlewares.JWTAuth)
	// 注册路由
	routers.RegisterRouters(r)
	r.Run(config.Port)
}
